home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / xmsif140.zip / EXMAKETC < prev    next >
Text File  |  1991-12-08  |  6KB  |  165 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR XMSTEST TESTER/EXAMPLE PROGRAM FOR XMSIF
  3. # TURBO C, TURBO C++
  4. # 12/08/91
  5. #
  6. #   This is an example makefile for Turbo C[++], to make the XMSTEST
  7. # tester/example program in any of the six supported memory models. It is
  8. # compatible with the MAKE utility provided with Turbo C 2.0 (MAKE version
  9. # 2.0). As supplied, it is set up for Turbo C 2.0. It is also set up to use
  10. # the inline-assembly versions of the functions in TESTUTIL.C.
  11. #
  12. #   The "-DNO_FFUNC" option on the "CFLAGS" line below is necessary because
  13. # Borland compilers before BC++ 2.0 did not have the functions _fmemcmp() and
  14. # _fmemset(); defining this symbol causes XMSTEST to use internal replacements
  15. # for these functions. These compilers also require an external assembler
  16. # (generally TASM, although Turbo C 1.5 and before used MASM) to support
  17. # in-line assembly code. If you have the required assembler and wish to use
  18. # the in-line assembly code (it improves execution speed significantly), you
  19. # do not need to make any changes. If you do not have the required assembler
  20. # or do not wish to use the in-line assembly code, simply remove "-DINLINE_ASM"
  21. # from the line that begins "CFLAGS", and remove "-B" from the line that
  22. # begins "CFLAGS2".
  23. #
  24. #   Before using this makefile, make sure that the Borland MAKE utility and
  25. # the appropriate command-line compiler and linker are in your path. The four
  26. # source files (XMSTEST.C, XMSTEST2.C, XMSTEST3.C, and TESTUTIL.C), the header
  27. # files (XMSTEST.H, TESTUTIL.H, and XMSIF.H), the appropriate library or
  28. # libraries (XMSIF*.LIB), and STACK.OBJ (if making the tiny-model example)
  29. # should all be in the current directory. Make sure that the line beginning
  30. # "LIBS" below contains the path to the standard objects and libraries (for
  31. # example, if the standard libraries are in c:\tc\lib, then the line should
  32. # read "LIBS = c:\tc\lib").
  33. #
  34. #   To use the makefile, type "make -fexmaketc target", where 'target' is
  35. # one or more of tiny, small, medium, compact, large, or huge, separated by
  36. # spaces. For example, "make -fexmaketc tiny" would make the tiny-model
  37. # example and "make -fexmaketc small large" would make the small- and large-
  38. # model examples. "make -fexmaketc" will make the test programs for all
  39. # memory models.
  40. #
  41.  
  42. CC    = tcc
  43. CFLAGS    = -c -d -DINLINE_ASM -DNO_FFUNC
  44. CFLAGS2 = -B
  45.  
  46. LINK    = tlink
  47. LF    = /c /x
  48.  
  49. LIBS    = c:\tc\lib
  50.  
  51.  
  52. all:        tiny small medium compact large huge
  53.  
  54. tiny:        txmstest
  55.  
  56. small:        sxmstest
  57.  
  58. medium:        mxmstest
  59.  
  60. compact:    cxmstest
  61.  
  62. large:        lxmstest
  63.  
  64. huge:        hxmstest
  65.  
  66.  
  67. txmstest.obj:    xmstest.c xmstest.h testutil.h
  68.         $(CC) $(CFLAGS) -mt -o$< xmstest.c
  69.  
  70. sxmstest.obj:    xmstest.c xmstest.h testutil.h
  71.         $(CC) $(CFLAGS) -ms -o$< xmstest.c
  72.  
  73. mxmstest.obj:    xmstest.c xmstest.h testutil.h
  74.         $(CC) $(CFLAGS) -mm -o$< xmstest.c
  75.  
  76. cxmstest.obj:    xmstest.c xmstest.h testutil.h
  77.         $(CC) $(CFLAGS) -mc -o$< xmstest.c
  78.  
  79. lxmstest.obj:    xmstest.c xmstest.h testutil.h
  80.         $(CC) $(CFLAGS) -ml -o$< xmstest.c
  81.  
  82. hxmstest.obj:    xmstest.c xmstest.h testutil.h
  83.         $(CC) $(CFLAGS) -mh -o$< xmstest.c
  84.  
  85. txmstst2.obj:    xmstest2.c xmstest.h testutil.h
  86.     $(CC) $(CFLAGS) -mt -o$< xmstest2.c
  87.  
  88. sxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  89.     $(CC) $(CFLAGS) -ms -o$< xmstest2.c
  90.  
  91. mxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  92.     $(CC) $(CFLAGS) -mm -o$< xmstest2.c
  93.  
  94. cxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  95.     $(CC) $(CFLAGS) -mc -o$< xmstest2.c
  96.  
  97. lxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  98.     $(CC) $(CFLAGS) -ml -o$< xmstest2.c
  99.  
  100. hxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  101.     $(CC) $(CFLAGS) -mh -o$< xmstest2.c
  102.  
  103. txmstst3.obj:    xmstest3.c xmstest.h testutil.h
  104.     $(CC) $(CFLAGS) -mt -o$< xmstest3.c
  105.  
  106. sxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  107.     $(CC) $(CFLAGS) -ms -o$< xmstest3.c
  108.  
  109. mxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  110.     $(CC) $(CFLAGS) -mm -o$< xmstest3.c
  111.  
  112. cxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  113.     $(CC) $(CFLAGS) -mc -o$< xmstest3.c
  114.  
  115. lxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  116.     $(CC) $(CFLAGS) -ml -o$< xmstest3.c
  117.  
  118. hxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  119.     $(CC) $(CFLAGS) -mh -o$< xmstest3.c
  120.  
  121. ttstutil.obj:    testutil.c testutil.h
  122.         $(CC) $(CFLAGS) $(CFLAGS2) -mt -o$< testutil.c
  123.  
  124. ststutil.obj:    testutil.c testutil.h
  125.         $(CC) $(CFLAGS) $(CFLAGS2) -ms -o$< testutil.c
  126.  
  127. mtstutil.obj:    testutil.c testutil.h
  128.         $(CC) $(CFLAGS) $(CFLAGS2) -mm -o$< testutil.c
  129.  
  130. ctstutil.obj:    testutil.c testutil.h
  131.         $(CC) $(CFLAGS) $(CFLAGS2) -mc -o$< testutil.c
  132.  
  133. ltstutil.obj:    testutil.c testutil.h
  134.         $(CC) $(CFLAGS) $(CFLAGS2) -ml -o$< testutil.c
  135.  
  136. htstutil.obj:    testutil.c testutil.h
  137.         $(CC) $(CFLAGS) $(CFLAGS2) -mh -o$< testutil.c
  138.  
  139.  
  140. txmstest:    txmstest.obj txmstst2.obj txmstst3.obj ttstutil.obj stack.obj \
  141.         xmsifs.lib
  142.     $(LINK) $(LF) $(LIBS)\c0t txmstest txmstst2 txmstst3 ttstutil stack, \
  143.             txmstest, , $(LIBS)\cs xmsifs
  144.  
  145. sxmstest:    sxmstest.obj sxmstst2.obj sxmstst3.obj ststutil.obj xmsifs.lib
  146.     $(LINK) $(LF) $(LIBS)\c0s sxmstest sxmstst2 sxmstst3 ststutil, \
  147.             sxmstest, , $(LIBS)\cs xmsifs
  148.  
  149. mxmstest:    mxmstest.obj mxmstst2.obj mxmstst3.obj mtstutil.obj xmsifm.lib
  150.     $(LINK) $(LF) $(LIBS)\c0m mxmstest mxmstst2 mxmstst3 mtstutil, \
  151.             mxmstest, , $(LIBS)\cm xmsifm
  152.  
  153. cxmstest:    cxmstest.obj cxmstst2.obj cxmstst3.obj ctstutil.obj xmsifc.lib
  154.     $(LINK) $(LF) $(LIBS)\c0c cxmstest cxmstst2 cxmstst3 ctstutil, \
  155.             cxmstest, , $(LIBS)\cc xmsifc
  156.  
  157. lxmstest:    lxmstest.obj lxmstst2.obj lxmstst3.obj ltstutil.obj xmsifl.lib
  158.     $(LINK) $(LF) $(LIBS)\c0l lxmstest lxmstst2 lxmstst3 ltstutil, \
  159.             lxmstest, , $(LIBS)\cl xmsifl
  160.  
  161. hxmstest:    hxmstest.obj hxmstst2.obj hxmstst3.obj htstutil.obj xmsifh.lib
  162.     $(LINK) $(LF) $(LIBS)\c0h hxmstest hxmstst2 hxmstst3 htstutil, \
  163.             hxmstest, , $(LIBS)\ch xmsifh
  164.  
  165.